package com.hotel.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hotel.dao.VipInfoMapper;
import com.hotel.entity.VipInfo;
import com.hotel.service.VipInfoService;

@Service("vipInfoService")
@Transactional(transactionManager="txManager")
public class VipInfoServiceImpl implements VipInfoService {
	
	@Resource
	private VipInfoMapper vipInfoMapper;

	@Override
	public int deleteByPrimaryKey(Integer memberId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(VipInfo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertSelective(VipInfo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public VipInfo selectByPrimaryKey(Integer memberId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKeySelective(VipInfo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateByPrimaryKey(VipInfo record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<VipInfo> findAllVipInfo(Integer pageNo, Integer pageSize) {
		return vipInfoMapper.findAllVipInfo((pageNo-1)*pageSize, pageSize);
	}

}
